package com.ganjiang.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ganjiang.entity.User;
import com.ganjiang.entity.UserCenter;
import com.ganjiang.mapper.UserCenterMapper;
import com.ganjiang.service.UserCenterService;

@Service("userCenterService")
public class UserCenterServiceImpl implements UserCenterService {

	@Resource
	private UserCenterMapper userCenterMapper;

	@Override
	public UserCenter findById(Integer uid) {
		// TODO Auto-generated method stub
		return userCenterMapper.findById(uid);
	}

	@Override
	public List<UserCenter> selectAllUserCenter() {
		// TODO Auto-generated method stub
		return userCenterMapper.selectAllUserCenter();
	}

	@Override
	public int deleteUsercenter(Integer id) {
		// TODO Auto-generated method stub
		return userCenterMapper.deleteUsercenter(id);
	}

	@Override
	public int addUserCenter(UserCenter userCenter) {
		// TODO Auto-generated method stub
		return userCenterMapper.addUserCenter(userCenter);
	}

	@Override
	public int updateCenter(UserCenter userCenter) {
		// TODO Auto-generated method stub
		return userCenterMapper.updateCenter(userCenter);
	}

}
